package com.example.rabbitmq.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @Author: ft
 * @Date:2025/8/26
 * @Description: 相关单据：
 */
@Configuration
public class RabbitMqDeadConfiguration {

//    @Bean
//    public Queue deadLetterQueue() {
//        return QueueBuilder.durable("dead-order-pay-queue").build();
//    }
//
//    @Bean
//    public DirectExchange deadLetterExchange() {
//        return new DirectExchange("dead-order-pay-exchange");
//    }
//
//    @Bean
//    public Binding deadLetterBinding() {
//        return new Binding("dead-order-pay-queue", Binding.DestinationType.QUEUE, "dead-order-pay-exchange", "order-pay-dead", null);
//    }

}